package com.hao.viewdemo;

import android.app.Activity;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;

import com.hao.view.WithGesturesOverlapView;
import com.hao.view.WithGesturesView;

public class MainActivity extends AppCompatActivity {


    private WithGesturesView test1;
    private WithGesturesView test2;
    private WithGesturesView test3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        test1 = (WithGesturesView) findViewById(R.id.test1);
        test2 = (WithGesturesView) findViewById(R.id.test2);
        test3 = (WithGesturesView) findViewById(R.id.test3);
        test3.setFocus(true);

        test3.setOnScrollOut(new WithGesturesView.OnScrollOut() {
            @Override
            public void delete(View view) {
                test3.setIamgeText(R.mipmap.m, "ceshi");
            }
        });


    }
}
